[as3] air for android - stage.setOrientation deprecated in AIR 2.5 so how do I do it now?
Posted
by
jason
on Stack Overflow
See other posts from Stack Overflow
or by jason
Published on 2010-12-31T06:27:14Z
Indexed on
2011/01/10
22:53 UTC
Read the original article
Hit count: 189
as3 air for android using flash CS5
my problem: testing an AIR app on my droid 2 global (with slide out keyboard) using stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGE, handleOrientationChange); this is only fired when the i slide the keyboard out and not when I rotate the phone. I have tried this with the auto orientation on and off and with the aspect to portrait and landscape.
actually the auto orientation option does not seem to make a difference on or off.
I need the orientation to change when i rotate the phone. I know i can use the accelerometer to do this but the problem with that is when I click on a textField with the keyboard closed only the vertical keyboard pops up and i need the other one to pop up when holding the phone sideways.
© Stack Overflow or respective owner